package com.wk1un2.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wk1un2.dao.TrackDao;
import com.wk1un2.entity.Track;
import com.wk1un2.service.TrackService;

@Service
public class TrackServiceImpl extends ServiceImpl<TrackDao, Track> implements TrackService {
	@Autowired
	private TrackDao trackdao;

	@Override
	public List<Map<String, Object>> getAll(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return baseMapper.getAll(map);
	}

	@Override
	public Integer count(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return baseMapper.count(map);
	}


	@Override
	public Integer insert(Track track) {
		// TODO Auto-generated method stub
//		baseMapper.insert(track);
		return baseMapper.insert(track);
	}

	@Override
	public Integer update(Track track) {
		return baseMapper.updateById(track);
	}

	@Override
	public Integer delete(Integer trackid) {
		// TODO Auto-generated method stub
		return baseMapper.deleteById(trackid);
	}

	@Override
	public List<Track> getBystuid(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return trackdao.getBystuid(map);
	}

	
}
